# 在字符串中将%符号转义

print("The %% behaves differently when combined with other letters, like this: %%d %%s %%f %d" % 10)


# 基本算术

# 加法减法
print(5 + 300)

print(399 + 3020 + 1 + 3456)

print(300 - 59994 + 20)

print(4023 - 22.46)

# 乘法
print(2000403030 * 392381727)
print(2000403030 * 3923817273929)
print(2e304 * 3923817273929)


# 除法
print(44 / 11)
print(5.0 / 2.5)
print(324 / 101)
print(324.5 / 102.9)

# 使用取余运算
print(5 / 3)
print(5 % 3)
print(123 % 44)
print(334 % 13)
print(652 % 4)


print(4023 - 22.4)
print("%f" % (4023 - 22.4))


# 格式说明符
print("%f" % (5 / 3))
print("%.2f" % (5 / 3))
print("%f" % (415 * 20.2))
print("%0.f" % (415 * 20.2))
